//
//  UserCompanyIDCell.swift
//  甜言蜜语
//
//  Created by yingli_yanfa_liuxingyu on 16/9/2.
//  Copyright © 2016年 wl. All rights reserved.
//

import UIKit
protocol UserCompanyIDCellDelegate {
    func choseSwitch(switchState: UISwitch)
}
class UserCompanyIDCell: UITableViewCell {
    @IBOutlet weak var name: UILabel!
    @IBOutlet weak var switchState: UISwitch!
    @IBOutlet weak var nickName: UILabel!
    var delegate:UserCompanyIDCellDelegate?
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    @IBAction func switchChange(switchState: UISwitch){
        
        delegate?.choseSwitch(switchState)
    }
    
}
